<?php
$uname =$_POST['username'];
$pwd = $_POST['pwd'];

// if($uname == 'admin' && $pwd == '123'){
//     echo "登录成功";
// }
if($uname == 'admin' && $pwd == '123'){
    ?>
    <script>
        parent.document.getElementById('info').innerHTML = '登录成功';
        
    </script>

<?php } ?>